import { PickHandleMap } from "../type";
import branchPickHandle from "./branchPickHandle";
import catchPickHandle from "./catchPickHandle";
import comboPickHandle from "./comboPickHandle";
import equalsPickHandle from "./equalsPickHandle";
import excludePickHandle from "./excludePickHandle";
import flatPickHandle from "./flatPickHandle";
import funcPickHandle from "./funcPickHandle";
import groupPickHandle from "./groupPickHandle";
import judgePickHandle from "./judgePickHandle";
import nestedPickHandle from "./nestedPickHandle";
import oncePickHandle from "./oncePickHandle";
import positionPickHandle from "./positionPickHandle";
import rangePickHandle from "./rangePickHandle";
import switchPickHandle from "./switchPickHandle";

export const pickHandleList = [
	branchPickHandle,
	catchPickHandle,
	comboPickHandle,
	equalsPickHandle,
	excludePickHandle,
	funcPickHandle,
	groupPickHandle,
	judgePickHandle,
	nestedPickHandle,
	oncePickHandle,
	rangePickHandle,
	switchPickHandle,
	positionPickHandle,
	flatPickHandle,
];

export const pickHandleMap: PickHandleMap = {} as any;
for (const pickHandle of pickHandleList) {
	pickHandleMap[pickHandle.ruleType] = pickHandle;
}
